package com.ucode.model.hrm.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Schema(description = "人力资源管理系统 - 简历应聘Form")
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
public class HrmPersonalResumeHandleForm {

    @Schema(description = "简历编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "简历编号不能为空")
    private Long id;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "备注不能为空")
    @Size(max = 255,message = "备注最大长度 255 个字符")
    private String applyRemark;

    @Schema(description = "处理状态", requiredMode = Schema.RequiredMode.REQUIRED,allowableValues = {"3","4"})
    @NotNull(message = "处理状态不能为空")
    @Range(min = 3,max = 6,message = "审核状态范围在3 - 6之间")
    private Integer applyStatus;
    
}

